package com.TeacherInfoServer.common.service;

import com.TeacherInfoServer.common.Result;
import com.TeacherInfoServer.pojo.DTO.SearchDTO.TemporaryPositionSearchDTO;
import com.TeacherInfoServer.pojo.entity.TemporaryPosition;
import com.TeacherInfoServer.pojo.DTO.AddTemporaryPositionDTO;
import com.TeacherInfoServer.pojo.DTO.UpdateTemporaryPositionDTO;
import com.TeacherInfoServer.pojo.vo.TemporaryPositionListVo;
import com.baomidou.mybatisplus.extension.service.IService;
import jakarta.servlet.http.HttpServletResponse;
import org.springframework.web.bind.annotation.RequestParam;

import java.io.IOException;
import java.util.Map;

public interface TemporaryPositionService extends IService<TemporaryPosition> {
    Result<Map<String, Integer>> addOne(AddTemporaryPositionDTO addTemporaryPositionDTO);
    Result<TemporaryPositionListVo> getList(Long pageNumber, Long pageSize);

    Map<String,Object> searchTemporaryPositionList(TemporaryPositionSearchDTO temporaryPositionSearchDTO);
    void export(HttpServletResponse response, @RequestParam String fileName) throws IOException;
    //    Result<TemporaryPositionListVo> getOneList(Long pageNumber, Long pageSize,String teacherId);
    Result<Map<String, Integer>> deleteBatch(Integer[] ids);
    Result<Map<String, Integer>> updateOne(UpdateTemporaryPositionDTO updateTemporaryPositionDTO);
}
